package Game;

/**
 * only rules
 * @author Jose
 *
 */
public class Bufu
{
	private Card card;
	
	public Bufu()
	{}
	
	public boolean canPlay(Card a, Card b)
	{
		if(a.getValue() == 2)
		{
			return true;
		}
		if(a.getValue() == 7)
		{
			if(b.getValue() <= 7)
			{
				return true;
			}
		}
		if(a.getValue() == 8)
		{
			return false;
		}
		if(a.getValue() == 10)
		{
			return true;
		}
		
		return false;
	}
}
